package nc.itf.budget.formation;



/**
 * business service ejb wrapper 
 * Created by EJBGenerator
 * based on velocity technology
 */

public class IFormation2_Local extends nc.bs.mw.naming.BeanBase
    implements nc.itf.budget.formation.IFormation2EjbObject {
   
  public IFormation2_Local() {
	super();
  }

  private nc.itf.budget.formation.IFormation2EjbBean _getBeanObject() throws java.rmi.RemoteException {
    return (nc.itf.budget.formation.IFormation2EjbBean) getEjb();
  }

  public void delete(java.lang.String arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_delete$String_arg0    );
    Exception er = null;
	try{
				_getBeanObject().delete(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_delete$String_arg0, er);    	
	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
 }
  public double getYSJE(java.lang.String arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getYSJE$String_arg0    );
    Exception er = null;
		double o = 0;
	try{
				o = (double)_getBeanObject().getYSJE(arg0);			
	}
	catch(Exception e){
		er = e;
	}  catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getYSJE$String_arg0, er);
	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public double getYSJE(java.lang.String arg0 ,java.lang.String arg1  ,java.lang.String arg2  ,java.lang.String arg3 ) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getYSJE$String_arg0$String_arg1$String_arg2$String_arg3    );
    Exception er = null;
		double o = 0;
	try{
				o = (double)_getBeanObject().getYSJE(arg0 ,arg1  ,arg2  ,arg3 );			
	}
	catch(Exception e){
		er = e;
	}  catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getYSJE$String_arg0$String_arg1$String_arg2$String_arg3, er);
	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public nc.vo.budget.fm_up.FormationVO getProjectNameByPK_Formation(java.lang.String arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getProjectNameByPK_Formation$String_arg0    );
    Exception er = null;
	nc.vo.budget.fm_up.FormationVO o = null;
	try{
				o = (nc.vo.budget.fm_up.FormationVO)_getBeanObject().getProjectNameByPK_Formation(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getProjectNameByPK_Formation$String_arg0, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public java.lang.String getNewFormation(nc.vo.budget.downsend.DownsendBVO arg0 ,java.lang.String arg1 ) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getNewFormation$DownsendBVO_arg0$String_arg1    );
    Exception er = null;
	java.lang.String o = null;
	try{
				o = (java.lang.String)_getBeanObject().getNewFormation(arg0 ,arg1 );			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getNewFormation$DownsendBVO_arg0$String_arg1, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public java.lang.String getNewFormation(nc.vo.budget.downsend.DownsendBVO arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getNewFormation$DownsendBVO_arg0    );
    Exception er = null;
	java.lang.String o = null;
	try{
				o = (java.lang.String)_getBeanObject().getNewFormation(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getNewFormation$DownsendBVO_arg0, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public java.util.ArrayList getPKsByCondition(java.lang.String arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getPKsByCondition$String_arg0    );
    Exception er = null;
	java.util.ArrayList o = null;
	try{
				o = (java.util.ArrayList)_getBeanObject().getPKsByCondition(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getPKsByCondition$String_arg0, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public void updateImportantOrder(java.util.ArrayList arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_updateImportantOrder$ArrayList_arg0    );
    Exception er = null;
	try{
				_getBeanObject().updateImportantOrder(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_updateImportantOrder$ArrayList_arg0, er);    	
	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
 }
  public java.lang.String getPKByCondition(java.lang.String arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getPKByCondition$String_arg0    );
    Exception er = null;
	java.lang.String o = null;
	try{
				o = (java.lang.String)_getBeanObject().getPKByCondition(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getPKByCondition$String_arg0, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public void checkOrNot(java.lang.String arg0 ,java.lang.String arg1 ) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_checkOrNot$String_arg0$String_arg1    );
    Exception er = null;
	try{
				_getBeanObject().checkOrNot(arg0 ,arg1 );			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_checkOrNot$String_arg0$String_arg1, er);    	
	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
 }
  public nc.vo.budget.fm_up.FormationVO getFormationByPk_downsendb(java.lang.String arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getFormationByPk_downsendb$String_arg0    );
    Exception er = null;
	nc.vo.budget.fm_up.FormationVO o = null;
	try{
				o = (nc.vo.budget.fm_up.FormationVO)_getBeanObject().getFormationByPk_downsendb(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.formation.IFormation2_Method_Const_Local.Method_getFormationByPk_downsendb$String_arg0, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
}